package com.gdwProject.smallchangeOOP;

import java.util.Scanner;

public class SmallChangeApp {
    public static void main(String[] args) {
        int input = 0;
        SmallChangeOOP smallChangeOOP = new SmallChangeOOP();
        do {
            Scanner scanner = new Scanner(System.in);
            smallChangeOOP.menu();
            System.out.print("请输入菜单选项：");
            input = scanner.nextInt();
            switch (input) {
                case 1:
                    smallChangeOOP.detail();
                    break;
                case 2:
                    smallChangeOOP.income();
                    break;
                case 3:
                    smallChangeOOP.pay();
                    break;
                case 4:
                    smallChangeOOP.exit();
                    break;
                default:
                    System.out.println("请重新输入菜单选项(1-4)");
                    break;
            }
        } while (smallChangeOOP.loop);
    }
}
